package com.niuwa.p2p.dao.business;

import java.util.List;
import java.util.Map;

import com.niuwa.p2p.dao.MyBatisDao;
import com.niuwa.p2p.entity.business.InvestTrans;

@MyBatisDao
public interface InvestTransDao {
    int deleteByPrimaryKey(String investNo);

    int insert(InvestTrans record);

    int insertSelective(InvestTrans record);

    InvestTrans selectByPrimaryKey(String investNo);

    int updateByPrimaryKeySelective(InvestTrans record);

    int updateByPrimaryKey(InvestTrans record);
    
    /**
	* @Description: 根据条件获取产品的投资记录
	* @param paramMap
	* @return
	* @throws Exception
	 */
	public List<InvestTrans> selectInvestRecordListPage(Map<String,Object> paramMap) throws Exception;

	List<InvestTrans> selectListByProjectNo(String projectNo);
	
	List<InvestTrans> selectListBySrcCreditNo(String srcCreditNo);
}